<?php

require_once "js.sdk.php"; 
$jssdk = new JSSDK("wx7197628dc9966e3d", "2df3acd8ec9b083b374fedf18fa723e5"); 
$signPackage = $jssdk->GetSignPackage();

?>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
  wx.config({
    //debug: true,
    appId: '<?php echo $signPackage["appId"];?>',
    timestamp: <?php echo $signPackage["timestamp"];?>,
    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
    signature: '<?php echo $signPackage["signature"];?>',
    jsApiList: [
		//与分享有关的接口
		'onMenuShareTimeline',
        'onMenuShareAppMessage',
		
		//与声音有关的接口
        'translateVoice',
        'startRecord',
        'stopRecord',
        'onRecordEnd',
        'playVoice',
        'pauseVoice',
        'stopVoice',
        'uploadVoice',
        'downloadVoice' 
    ]
  });

</script> 